﻿using GroupMeal.Groups;
using GroupMeal.Standards;
using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace GroupMeal.Orders
{
    public class GroupOrder:AuditedEntity<Guid>,IMultiTenant
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        public virtual Guid? TenantId
        {
            get;set;
        }

        /// <summary>
        /// 组织Id
        /// </summary>
        public virtual Guid GroupId
        {
            get;set;
        }

        /// <summary>
        /// 组织
        /// </summary>
        public virtual Group Group
        {
            get;set;
        }

        /// <summary>
        /// 点餐标准Id
        /// </summary>
        public virtual Guid? StandardId
        {
            get;set;
        }

        /// <summary>
        /// 点餐标准
        /// </summary>
        public virtual Standard? Standard
        {
            get;set;
        }

        /// <summary>
        /// 应付金额
        /// </summary>
        public virtual float PayableAmount
        {
            get;set;
        }

        /// <summary>
        /// 实付金额
        /// </summary>
        public virtual float PaidAmount
        {
            get;set;
        }

        /// <summary>
        /// 包含的会员订单集合
        /// </summary>
        public virtual List<MemberOrder>? MemberOrders { get; set; }
    }
}
